package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-03-01
 * Time: 15:25
 */

class A {
    protected int a = 10;

    public void fun() {
        System.out.println(a);
    }
}

public class demoprotected extends A {
    protected int b = 10;
    public static void main(String[] args) {
        A a1 = new A();

    }
}
